import http from "../utils/request"

//获取验证码getCaptchaApi

export let getCaptchaApi=()=>http.get('/users/getCaptcha?v=next')


//校验验证码veritfCaptchaApi
 
export let veritfCaptchaApi=(captcha)=>http.get('/users/verifyCaptcha?captcha='+captcha)

//用户密码登录loginApi

export let loginApi=(username,password)=>http.post('/users/login',{
    username:username,
    password:password
})

//手机验证码 getSmsCode

export let getSmsCode=(phoneNumber)=>http.post('/sms/send',{
    phoneNumber:phoneNumber
})

//手机验证码登录smsApi

export let smsApi=(code)=>http.post('/users/login?type=sms',{
    code:code
})

